package com.sun.syndication.feed.module.wcm.types;

/**
 * 
 * <p>This file is extracted from Websphere Portal 6.1 FeedServiceWCPPlugin.jar
 * 
 * <p>Original class is <code>com.ibm.workplace.feed.plugin.wcm.module.Component</code>
 *
 */
public class Component
    implements Cloneable
{

    public Component(String pName, String pType, String pContents)
    {
        lockToVersion = false;
        allowClear = true;
        name = pName;
        type = pType;
        contents = pContents;
    }

    public String getName()
    {
        return name;
    }

    public String getType()
    {
        return type;
    }

    public String getContents()
    {
        return contents;
    }

    public boolean isLockedToVersion()
    {
        return lockToVersion;
    }

    public String getAddlAttributes()
    {
        return addlAttributes;
    }

    public boolean isAllowClear()
    {
        return allowClear;
    }

    public String getAltText()
    {
        return altText;
    }

    public String getBorder()
    {
        return border;
    }

    public String getCssTitle()
    {
        return cssTitle;
    }

    public String getFileName()
    {
        return fileName;
    }

    public String getFormat()
    {
        return format;
    }

    public String getHeight()
    {
        return height;
    }

    public String getHtmlName()
    {
        return htmlName;
    }

    public String getPDMLibrary()
    {
        return pdmLibrary;
    }

    public String getLinkDesc()
    {
        return linkDesc;
    }

    public String getLinkTextType()
    {
        return linkTextType;
    }

    public String getLinkTextLibrary()
    {
        return linkTextLibrary;
    }

    public String getLinkTarget()
    {
        return linkTarget;
    }

    public String getLinkText()
    {
        return linkText;
    }

    public String getMediaType()
    {
        return mediaType;
    }

    public String getQueryString()
    {
        return queryString;
    }

    public String getWidth()
    {
        return width;
    }

    public String getValueObjectType()
    {
        return valueObjectType;
    }

    public String getValueType()
    {
        return valueType;
    }

    public String getValueReferenceLibrary()
    {
        return valueReferenceLibrary;
    }

    public void setContents(String p_contents)
    {
        contents = p_contents;
    }

    public void setFileName(String p_name)
    {
        fileName = p_name;
    }

    public void setLockToVersion()
    {
        lockToVersion = true;
    }

    public void setUnlockToVersion()
    {
        lockToVersion = false;
    }

    public void setAddlAttributes(String pAttributes)
    {
        addlAttributes = pAttributes;
    }

    public void setAllowClear(boolean pClear)
    {
        allowClear = pClear;
    }

    public void setAltText(String pText)
    {
        altText = pText;
    }

    public void setBorder(String pBorder)
    {
        border = pBorder;
    }

    public void setCssTitle(String pCssTitle)
    {
        cssTitle = pCssTitle;
    }

    public void setFormat(String pFormat)
    {
        format = pFormat;
    }

    public void setHeight(String pHeight)
    {
        height = pHeight;
    }

    public void setHtmlName(String pHtmlName)
    {
        htmlName = pHtmlName;
    }

    public void setLinkDesc(String pLinkDesc)
    {
        linkDesc = pLinkDesc;
    }

    public void setLinkTextType(String pLinkTextType)
    {
        linkTextType = pLinkTextType;
    }

    public void setLinkTextLibrary(String pLinkTextLibrary)
    {
        linkTextLibrary = pLinkTextLibrary;
    }

    public void setLinkTarget(String pTarget)
    {
        linkTarget = pTarget;
    }

    public void setLinkText(String pText)
    {
        linkText = pText;
    }

    public void setMediaType(String pType)
    {
        mediaType = pType;
    }

    public void setPDMLibrary(String pLibrary)
    {
        pdmLibrary = pLibrary;
    }

    public void setQueryString(String pQueryString)
    {
        queryString = pQueryString;
    }

    public void setWidth(String pWidth)
    {
        width = pWidth;
    }

    public void setValueObjectType(String pObjectType)
    {
        valueObjectType = pObjectType;
    }

    public void setValueType(String pValueType)
    {
        valueType = pValueType;
    }

    public void setValueReferenceLibrary(String pLibrary)
    {
        valueReferenceLibrary = pLibrary;
    }

    public Object clone()
        throws CloneNotSupportedException
    {
        Component comp = (Component)super.clone();
        return comp;
    }

    private String name;
    private String type;
    private String fileName;
    private boolean lockToVersion;
    private String contents;
    private String format;
    private String pdmLibrary;
    private String altText;
    private String border;
    private String height;
    private String width;
    private String htmlName;
    private String linkText;
    private String linkTextType;
    private String linkTarget;
    private String linkDesc;
    private String queryString;
    private String addlAttributes;
    private boolean allowClear;
    private String mediaType;
    private String cssTitle;
    private String valueType;
    private String valueReferenceLibrary;
    private String valueObjectType;
    private String linkTextLibrary;
    
    public static final String TYPE_TEXT = "text";
    public static final String TYPE_RICH_TEXT = "ricoh text";
    public static final String TYPE_SHORT_TEXT = "shortText";
    public static final String TYPE_FILE = "file";
    public static final String TYPE_HTML = "html";
    public static final String TYPE_HTML_FILE = "htmlfile";
    public static final String TYPE_IMAGE = "image";
    public static final String TYPE_DATE = "date";
    public static final String TYPE_LINK = "link";
    public static final String TYPE_NUMBER = "number";
    public static final String TYPE_USER_SELECT = "userSelect";
    public static final String TYPE_STYLESHEET = "styleSheet";
}
